/*
Theme Name: 丸子资讯
Theme URI: https://aihack.cn/
Author: 丸子团队
Author URI: https://aihack.cn/
Description: wordpress资讯主题
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wanzicms
Tags: custom-theme, basic
*/ 

/* 评论图片样式 */
.comment-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.comment-image:hover {
    transform: scale(1.02);
}

/* 评论表单布局 */
.comment-form {
    position: relative;
}

.comment-form .form-submit {
    position: absolute;
    right: 0;
    top: 0;
    margin-top: 0;
    z-index: 10;
}

/* 评论提交按钮 */
#submit {
    padding: 0.5rem 1.25rem;
    background-color: #165DFF;
    color: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#submit:hover {
    background-color: rgba(22, 93, 255, 0.9);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 640px) {
    .comment-form .form-submit {
        position: relative;
        margin-top: 1rem;
        display: flex;
        justify-content: flex-end;
    }
}

/* 表情面板样式 */
#emoji-panel {
    position: absolute;
    z-index: 100;
    max-width: 300px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    max-height: 300px;
    overflow-y: auto;
}

#emoji-panel .grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.25rem;
}

#emoji-panel button {
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    background: transparent;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

#emoji-panel button:hover {
    background-color: #f3f4f6;
}

/* 评论回复框样式 */
.comment-respond-form {
    position: relative;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.comment-respond-form.hidden {
    display: none;
}

/* 确保回复框不会跑位 */
#comments-container .comment-respond-form {
    left: 0 !important;
    right: 0 !important;
    position: relative !important;
    transform: none !important;
}

/* 修复WordPress默认回复链接行为 */
.comment-reply-link {
    cursor: pointer;
} 

.system-message {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.system-message-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: bold;
}

.system-message-content {
    font-size: 1em;
} 